| Filename | (eval 1139)[/usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm:78] | 
| Statements | Executed 4 statements in 2µs | 
| Eval Invoked At | /usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm line 78 | 
| Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 | 
| Line | State ments  | 
      Time on line  | 
      Calls | Time in subs  | 
      Code | 
|---|---|---|---|---|---|
| 1 | sub { | ||||
| 2 | 1 | 400ns | my $context = shift || die "template sub called without context\n"; | ||
| 3 | 1 | 2µs | 1 | 2µs |     my $stash   = $context->stash;     # spent     2µs making 1 call to Template::Context::stash  | 
| 4 | 1 | 300ns | my $output = ''; | ||
| 5 | 1 | 100ns | my $_tt_error; | ||
| 6 | |||||
| 7 | eval { BLOCK: { | ||||
| 8 | #line 1 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc" | ||||
| 9 | # USE | ||||
| 10 | $stash->set('Branches', | ||||
| 11 | $context->plugin('Branches')); | ||||
| 12 | $output .= "\n"; | ||||
| 13 | #line 50 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc" | ||||
| 14 | if (($stash->get('CAN_user_circulate'))) { | ||||
| 15 | #line 23 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc" | ||||
| 16 | if (($stash->get('CircAutocompl'))) { | ||||
| 17 | $output .= "<script type=\"text/javascript\">\n//<![CDATA[\n\$(document).ready(function(){\n \$( \"#findborrower\" ).autocomplete({\n source: \"/cgi-bin/koha/circ/ysearch.pl\",\n minLength: 3,\n select: function( event, ui ) {\n \$( \"#findborrower\" ).val( ui.item.cardnumber );\n \$(\"#patronsearch\").submit();\n return false;\n }\n })\n .data( \"ui-autocomplete\" )._renderItem = function( ul, item ) {\n return \$( \"<li></li>\" )\n .data( \"ui-autocomplete-item\", item )\n .append( \"<a>\" + item.surname + \", \" + item.firstname + \" (\" + item.cardnumber + \") <small>\" + item.dateofbirth + \" \" + item.address + \" \" + item.city + \" \" + item.zipcode + \" \" + item.country + \"</small></a>\" )\n .appendTo( ul );\n };\n\n});\n//]]>\n</script>"; | ||||
| 18 | } | ||||
| 19 | |||||
| 20 | $output .= "\n <div id=\"circ_search\" class=\"residentsearch\">\n <p class=\"tip\">Enter patron card number or partial name:</p>\n <form action=\"/cgi-bin/koha/circ/circulation.pl\" id=\"patronsearch\" method=\"post\">\n "; | ||||
| 21 | #line 47 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc" | ||||
| 22 | if (($stash->get('CircAutocompl'))) { | ||||
| 23 | $output .= "\n <div class=\"autocomplete\">\n <input autocomplete=\"off\" id=\"findborrower\" name=\"findborrower\" size=\"40\" class=\"head-searchbox focus\" type=\"text\" />\n <input id=\"autocsubmit\" type=\"submit\" class=\"submit\" value=\"Submit\" />\n <input name=\"branch\" value=\""; | ||||
| 24 | #line 31 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc" | ||||
| 25 | $output .= $stash->get(['Branches', 0, 'GetLoggedInBranchcode', 0]); | ||||
| 26 | $output .= "\" type=\"hidden\" />\n <input name=\"printer\" value=\"\" type=\"hidden\" />\n "; | ||||
| 27 | #line 36 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc" | ||||
| 28 | if (($stash->get('stickyduedate'))) { | ||||
| 29 | $output .= "\n <input type=\"hidden\" name=\"duedatespec\" value=\""; | ||||
| 30 | #line 34 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc" | ||||
| 31 | $output .= $stash->get('duedatespec'); | ||||
| 32 | $output .= "\" />\n <input type=\"hidden\" name=\"stickyduedate\" value=\""; | ||||
| 33 | #line 35 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc" | ||||
| 34 | $output .= $stash->get('stickyduedate'); | ||||
| 35 | $output .= "\" />\n "; | ||||
| 36 | } | ||||
| 37 | |||||
| 38 | $output .= "\n </div>\n "; | ||||
| 39 | } | ||||
| 40 | else { | ||||
| 41 | $output .= "\n <input id=\"findborrower\" name=\"findborrower\" size=\"40\" class=\"head-searchbox focus\" type=\"text\" />\n <input name=\"branch\" value=\""; | ||||
| 42 | #line 40 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc" | ||||
| 43 | $output .= $stash->get('branch'); | ||||
| 44 | $output .= "\" type=\"hidden\" />\n <input name=\"printer\" value=\"\" type=\"hidden\" />\n "; | ||||
| 45 | #line 45 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc" | ||||
| 46 | if (($stash->get('stickyduedate'))) { | ||||
| 47 | $output .= "\n <input type=\"hidden\" name=\"duedatespec\" value=\""; | ||||
| 48 | #line 43 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc" | ||||
| 49 | $output .= $stash->get('duedatespec'); | ||||
| 50 | $output .= "\" />\n <input type=\"hidden\" name=\"stickyduedate\" value=\""; | ||||
| 51 | #line 44 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc" | ||||
| 52 | $output .= $stash->get('stickyduedate'); | ||||
| 53 | $output .= "\" />\n "; | ||||
| 54 | } | ||||
| 55 | |||||
| 56 | $output .= "\n <input value=\"Submit\" class=\"submit\" type=\"submit\" />\n "; | ||||
| 57 | } | ||||
| 58 | |||||
| 59 | $output .= "\n </form>\n </div>\n "; | ||||
| 60 | } | ||||
| 61 | |||||
| 62 | $output .= "\n"; | ||||
| 63 | } }; | ||||
| 64 | if ($@) { | ||||
| 65 | $_tt_error = $context->catch($@, \$output); | ||||
| 66 | die $_tt_error unless $_tt_error->type eq 'return'; | ||||
| 67 | } | ||||
| 68 | |||||
| 69 | return $output; | ||||
| 70 | } | ||||
| 71 | |||||
| 72 | ; |